package com.pronosticnews.server.services;

import java.util.Comparator;

import com.pronosticnews.server.domain.model.Participation;

public class CompareClassementByPoints implements Comparator<Participation> {

	@Override
	public int compare(Participation cl1, Participation cl2) {
		try {
			return cl2.getPoints().compareTo(cl1.getPoints());
		} catch (NullPointerException n) {
			return 0;
		}
	}
}
